package my.test;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;

/**
 * @author yuhang
 * @desc
 * @since 2022/4/13
 */
public class sss {

    public static List<String> aa(String pathname) throws Exception {
        File file = new File(pathname);
        BufferedReader reader = new BufferedReader(new FileReader(file));

        String len = null;
        List<String> add = new ArrayList<>();
        while ((len = reader.readLine()) != null) {

            add.add(len);

        }

        return add;
    }


    public static void main(String[] args) throws Exception {
        List<String> a = aa("D:/q.txt");
        List<String> b = aa("D:/3.txt");


        a.removeAll(b);

        System.out.println(a);
    }
}
